const mongoose = require("mongoose");

module.exports = mongoose.model("user", {
  user_name: {
    type: String,
    required: true,
  },
  password: {
    type: String,
    required: true,
  },
  sex: {
    type: String,
    default: ''
  },
  concern: {         //关注人数
    type: Number,
    default: 0
  },
  fans: {
    type: Number,
    default: 0
  },
  likenum: {          //点赞
    type: Number,
    default: 0
  },
  birthday: {
    type: String,
    default: ''
  },
  avatar: {
    type: String,
    // https://cdn7.axureshop.com/demo/1934191/images/%E7%BC%96%E8%BE%91%E8%B5%84%E6%96%99/oval_copy_6_u1883.png
    default: 'https://cdn7.axureshop.com/demo/1934191/images/%E7%BC%96%E8%BE%91%E8%B5%84%E6%96%99/oval_copy_6_u1883.png'
  },
  registerDate: {
    type: String,
    default: ''
  },
});
